package com.naokeziteng.dijkstra.domain;

/**
 * @author hawk
 * @date 2022/10/15
 * @desc 图的边
 **/
public class Edge {
    //边id
    private String edgeId;
    //起点顶点id
    private String start;
    //终点顶点id
    private String end;
    //边的权重
    private double weight;

    public Edge() {
    }

    public Edge(String edgeId, String start, String end, double weight) {
        this.edgeId = edgeId;
        this.start = start;
        this.end = end;
        this.weight = weight;
    }

    public String getEdgeId() {
        return edgeId;
    }

    public void setEdgeId(String edgeId) {
        this.edgeId = edgeId;
    }

    public String getStart() {
        return start;
    }

    public void setStart(String start) {
        this.start = start;
    }

    public String getEnd() {
        return end;
    }

    public void setEnd(String end) {
        this.end = end;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }
}
